import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '@/components/Home.vue';
import Interaction from '@/views/Interaction';
import Parkinglot from '@/views/Parkinglot';
import Brandpage from '@/views/Brandpage';
import Catering from '@/views/Catering';
import Mallmap from '@/views/Mallmap';
import Member from '@/views/Member';
import Store from '@/views/Store';

Vue.use(VueRouter);

export default new VueRouter({
  routes: [
    // 门店信息
    {
      path: '/store',
      component: Store,
    },
    // 配置路由
    {
      path: '/home',
      component: Home,
    },
    // "首页"路由配置结束
    {
      path: '/brandpage',
      component: Brandpage,
    },
    // "品牌搜索"路由配置结束
    {
      path: '/Catering',
      component: Catering,
    },
    // "餐饮美食"路由配置结束
    {
      path: '/interaction',
      component: Interaction,
    },
    // "智能互动"路由配置结束
    {
      path: '/mallmap',
      component: Mallmap,
    },
    // "商场导航"路由配置结束
    {
      path: '/member',
      component: Member,
    },
    // "会员说明"路由配置结束
    {
      path: '/parkinglot',
      component: Parkinglot,
    },
    // "停车收费"路由配置结束

    // 重定向，在项目跑起来的时候，当用户访问“/”斜杠时，立马让它定位到首页
    {
      path: '/',
      redirect: '/home',
    },
  ],
});
